package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.math.BigDecimal;

/**
 * @author cjr
 */
@Data
@Builder
public class TicketOrderListResponse {
    @ApiModelProperty(value = "订单列表", dataType = "TicketOrderListResponse.Order")
    private PageResponse2<Order> orders;
    @ApiModelProperty("我的订单-订单统计")
    private String title;

    @ApiModel("TicketOrderListResponse.Order")
    @Data
    @Builder
    public static class Order {
        @ApiModelProperty("订单ID")
        private Integer orderId;
        @ApiModelProperty("进货企业")
        private String fromCompanyName;
        @ApiModelProperty("订单编号")
        private String orderNo;
        @ApiModelProperty("订单金额")
        private BigDecimal orderMoney;
        @ApiModelProperty("下单时间（时间戳）")
        private Long ctime;
        private String fileUpload;
        @ApiModelProperty("订单状态说明")
        private String status;
        @ApiModelProperty("订单状态：0审核中 1已通过 2未通过")
        private Integer statusType;
    }
}
